package co.baiku.boot;

import co.baiku.boot.core.orm.dao.BaseDAOFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.data.web.config.EnableSpringDataWebSupport;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableWebMvc
//@EnableScheduling
@EnableSpringDataWebSupport
@EnableTransactionManagement
@EnableJpaRepositories(basePackages = "co.baiku.boot", repositoryFactoryBeanClass = BaseDAOFactoryBean.class)
@EnableJpaAuditing
public class Server {

    public static void main(String[] args) {
        SpringApplication.run(Server.class, args);
    }

}
